<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
	<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<title><?php echo C('WEB_SITE_TITLE'); if(!empty($meta_title)): ?>——<?php echo ($meta_title); endif; ?></title></title>
<meta name="keywords" content="<?php echo C('WEB_SITE_KEYWORD');?>"/>
<meta name="description" content="<?php echo C('WEB_SITE_DESCRIPTION');?>"/>

<link rel="stylesheet" type="text/css" href="/Public/Home/css/common.css"/>
<link rel="stylesheet" type="text/css" href="/Public/Home/css/index.css"/>
<link rel="stylesheet" type="text/css" href="/Public/Home/static/swiper/swiper.min.css" />
<script src="/Public/Home/static/swiper/swiper.min.js"></script>
<script src="/Public/Home/static/jquery.2.1.1.min.js"></script>
<script src="/Public/Home/js/common.js"></script>

    <link rel="stylesheet" type="text/css" href="/Public/Home/css/banner.css"/>
    <link rel="stylesheet" type="text/css" href="/Public/Home/css/gundong.css"/>


    <script src="/Public/Home/js/gundong.js"></script>

</head>
<body class="index-page">
	<!-- 头部 -->
	
<div class="top">
    <div class="wrap">
        <div class="welcome">你好，欢迎您来到政信联众互联网信息服务有限公司！</div>
        <div class="favorite">
            <a href="javascript:void(0);" onclick="AddFavorite('我的网站',location.href)" >加入收藏</a> |
            <a href="javascript:void(0);" onclick="SetHome(this,location.href);">设为首页</a>
        </div>
    </div>
</div>
<!--logo+搜索-->
<div class="header">
    <div class="wrap">
        <div class="logo">
            <a href="/"><img src="/Public/Home/images/logo.png"/></a>
        </div>
        <div class="search">
            <form method="post" action="<?php echo U('Keyword/index');?>" onsubmit="return detection()">
                <input class="text" type="text" name="keyword" placeholder="请输入搜索关键字"/>
                <input type="submit" class="btn" value="">
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
    function Trim(str)
    {
        return str.replace(/(^\s*)|(\s*$)/g, "");
    }
    function detection(){
        var keyword=$("input[name='keyword']").val();
        if(Trim(keyword)==""){
               alert("请输入关键字");
            return false;
        }
    }
   $(function(){
       $(window).scroll(function(){
           $(".top").css("display","none");
            $(".header").addClass("headeer");
           $(".navigation").addClass("navigationn");

           var top = $(this).scrollTop();
           if (top==0){
               $(".top").css("display","block");
               $(".header").removeClass("headeer");
               $(".navigation").removeClass("navigationn");
           }

           if(top>646){
               $(".sc").css("display","block");
           }
       })
   })
</script>
<!--菜单-->
<div class="navigation">
    <div class="wrap">
        <ul>
            <?php $__NAV__ = M('Channel')->field(true)->where("status=1")->order("sort")->select(); if(is_array($__NAV__)): $i = 0; $__LIST__ = $__NAV__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$nav): $mod = ($i % 2 );++$i; if(($nav["pid"]) == "0"): ?><li >
                        <a <?php if(strstr($nav['url'],CONTROLLER_NAME)){ echo "style='background-color: #D64A4A;'"; } ?>   href="<?php echo (get_nav_url($nav["url"])); ?>" target="<?php if(($nav["target"]) == "1"): ?>_blank<?php else: ?>_self<?php endif; ?>">
                            <?php echo ($nav["title"]); ?>
                        </a>
                    </li><?php endif; endforeach; endif; else: echo "" ;endif; ?>
        </ul>
    </div>
</div>
<div id="body"></div>

   <div class="index-ban swiper-container" style="" >
        <div class="swiper-wrapper">
            <?php if(is_array($banner_data)): $i = 0; $__LIST__ = $banner_data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><div class="swiper-slide"><img  src="<?php echo (get_cover($val["cover_id"],'path')); ?>" width="100%"></div><?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
        <div class="ban-page"></div>
    </div>















<!--<?php $__NAV__ = M('Channel')->field(true)->where("status=1")->order("sort")->select(); if(is_array($__NAV__)): $i = 0; $__LIST__ = $__NAV__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$nav): $mod = ($i % 2 );++$i; if(($nav["pid"]) == "0"): ?><li>
            <a href="<?php echo (get_nav_url($nav["url"])); ?>" target="<?php if(($nav["target"]) == "1"): ?>_blank<?php else: ?>_self<?php endif; ?>">
                <div class="cn same"><p><?php echo ($nav["title"]); ?></p></div>
                <div class="en same"><?php echo ($nav["english_name"]); ?></div>
            </a>
        </li><?php endif; endforeach; endif; else: echo "" ;endif; ?>-->







	<!-- /头部 -->
	
	<!-- 主体 -->
	

    <!--正文-->
    <div class="body" style="margin-top: 23px;">
        <div class="wrap">
            <!--公告 新闻-->
            <div class="news">
                <h3>最新<br/>资讯</h3>
                <div class="content swiper-container"  id="news-swiper-container">
                    <div class="swiper-wrapper">
                        <?php $__CATE__ = D('Category')->getChildrenId(86);$__LIST__ = D('Document')->page(!empty($_GET["p"])?$_GET["p"]:1,3)->lists($__CATE__, '`level` DESC,`id` DESC', 1,true); if(is_array($__LIST__)): $i = 0; $__LIST__ = $__LIST__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$article): $mod = ($i % 2 );++$i;?><div class="swiper-slide">
                            <p><?php echo ($article["title"]); ?> <a href="<?php echo U('News/detail',array('id'=>$article['id']));?>#body">【详细查看】</a></p>
                            <span><?php echo ($article["description"]); ?></span>
                        </div><?php endforeach; endif; else: echo "" ;endif; ?>
                    </div>
                </div>
                <div class="control">
                    <a href="javascript:;" class="up"></a>
                    <a href="javascript:;" class="down"></a>
                </div>
            </div>
        </div>
        <div class="wrap">
            <div class="box-style1 box-slide" style="margin-top: 10px;">
                <h3>
                    合作项目
                </h3>
                <div class="swiper-container" id="imgs-swiper-container">
                    <div class="swiper-wrapper" >
                        <?php if(is_array($hzxm['list'])): $i = 0; $__LIST__ = $hzxm['list'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><div class="swiper-slide" style="height: 355px;">
                            <a href="<?php echo U('Service/index',array('template'=>'detail','template_id'=>$val['id']));?>#body">
                                <img height="355px;" src="<?php echo (get_cover($val["cover_id"],'path')); ?>">
                                <p><?php echo ($val["title"]); ?></p>
                            </a>
                        </div><?php endforeach; endif; else: echo "" ;endif; ?>
                    </div>
                    <div class="imgs-pagination"></div>
                </div>
            </div>
            <div class="box-style1 box-news-list" style="margin-top: 10px;">
                <h3>
                    新闻资讯
                    <a class="more" href="<?php echo U('News/index');?>#body">更多>></a>
                </h3>
                <ul>
                    <?php $__CATE__ = D('Category')->getChildrenId(86);$__LIST__ = D('Document')->page(!empty($_GET["p"])?$_GET["p"]:1,4)->lists($__CATE__, '`level` DESC,`id` DESC', 1,true); if(is_array($__LIST__)): $i = 0; $__LIST__ = $__LIST__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$article): $mod = ($i % 2 );++$i;?><li>
                            <div class="time"><?php echo (date("Y-m",$article["create_time"])); ?><span><?php echo (date("d",$article["create_time"])); ?></span></div>
                            <div class="text">
                                <?php echo ($article["title"]); ?> <a href="<?php echo U('News/detail',array('id'=>$article['id']));?>#body">【详细查看】</a>
                                <p><?php echo ($article["description"]); ?></p>
                            </div>
                        </li><?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>
        </div>
        <div class="wrap">
           <div>
               <h3 style="float: left;width: 580px;margin-right: 40px;font-size: 18px;color: #cc0033;font-weight: 300;border-bottom: 1px solid #ccc;line-height: 3em;">
                   <span style="float: left;line-height: 54px;font-size: 20px;font-family: '微软雅黑';">风险防范</span>
                   <a style="display:block;float: right;font-size: 14px;color: #999;" class="more" href=" <?php echo U('Investment/index');?>#body">更多>></a>
               </h3>
               <h3 style="float: left;width:580px;font-size: 18px;color: #cc0033;font-weight: 300;border-bottom: 1px solid #ccc;line-height: 3em;">
                   <span style="float: left;line-height: 54px;font-size: 20px;font-family: '微软雅黑';">业务介绍</span>
                   <a style="display:block;float: right;font-size: 14px;color: #999;" class="more" href="<?php echo U('Service/index');?>#body">更多>></a>
               </h3>
               <div style="clear: both;"></div>
           </div>
            <div class="box-style2  box_50 box_l" style="background-color: #eee; width: 580px;height: 307px;">
                <h3>
                    <span>风险防范</span>

                </h3>
                <ul>
                    <?php $__CATE__ = D('Category')->getChildrenId(111);$__LIST__ = D('Document')->page(!empty($_GET["p"])?$_GET["p"]:1,6)->lists($__CATE__, '`level` DESC,`id` DESC', 1,true); if(is_array($__LIST__)): $i = 0; $__LIST__ = $__LIST__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$article): $mod = ($i % 2 );++$i;?><li><span><?php echo (date("Y-m-d",$article["create_time"])); ?></span><a href="<?php echo U('Investment/detail',array('id'=>$article['id']));?>#body"><?php echo ($article["title"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>

            <div class="box-ad box_50 box_r" style="height: 310px;">
                <div class="ad">
                    <img width="580px;" height="138px;" src="/Public/Home/images/ad123.jpg"/>
                </div>
                <div class="business">
                    <a href="<?php echo U('Service/index',array('id'=>586));?>#body">
                    <h3>业务介绍<br/>
                        <span>Business introduction</span>
                    </h3>
                    </a>
                    <ul>　
                        <li class="item-1"><a style="color: #af3034;font-size: 16px;" href="<?php echo U('Service/index',array('id'=>586));?>#body">融资租赁</a></li>
                        <li class="item-2"><a style="color: #af3034;font-size: 16px;" href="<?php echo U('Service/index',array('id'=>585));?>#body">信托贷款</a></li>
                        <li class="item-3"><a style="color: #af3034;font-size: 16px;" href="<?php echo U('Service/index',array('id'=>584));?>#body">银行贷款</a></li>
                        <li class="item-4"><a style="color: #af3034;font-size: 16px;" href="<?php echo U('Service/index',array('id'=>583));?>#body">债券融资</a></li>
                        <li class="item-5"><a style="color: #af3034;font-size: 16px;" href="<?php echo U('Service/index',array('id'=>582));?>#body">基金方案</a></li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="wrap" style="margin-top: 10px;">
            <div>
                <h3 style="float: left;width: 580px;margin-right: 40px;font-size: 18px;color: #cc0033;font-weight: 300;border-bottom: 1px solid #ccc;line-height: 3em;">
                    <span style="float: left; font-size: 20px;font-family: '微软雅黑';">法律法规</span>
                    <a style="display:block;float: right;font-size: 14px;color: #999;" class="more" href="<?php echo U('Policy/index');?>#body">更多>></a>
                </h3>
                <h3 style="float: left;width:580px;font-size: 18px;color: #cc0033;font-weight: 300;border-bottom: 1px solid #ccc;line-height: 3em;">
                    <span style="float: left; font-size: 20px;font-family: '微软雅黑';">行业动态</span>
                    <a style="display:block;float: right;font-size: 14px;color: #999;" class="more" href="<?php echo U('News/index',array('cate_id'=>51));?>#body">更多>></a>
                </h3>
                <div style="clear: both;"></div>
            </div>
            <div class="box-style2 box_50 box_l" style="width: 580px">
                <h3>
                    <span>法律法规</span>

                </h3>
                <ul>
                    <?php $__CATE__ = D('Category')->getChildrenId(110);$__LIST__ = D('Document')->page(!empty($_GET["p"])?$_GET["p"]:1,6)->lists($__CATE__, '`level` DESC,`id` DESC', 1,true); if(is_array($__LIST__)): $i = 0; $__LIST__ = $__LIST__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$article): $mod = ($i % 2 );++$i;?><li><span><?php echo (date("Y-m-d",$article["create_time"])); ?></span><a href="<?php echo U('Policy/detail',array('id'=>$article['id']));?>#body"><?php echo ($article["title"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>

            <div class="box-style2 box_50 box_r">
                <h3>
                    <span>行业动态</span>

                </h3>
                <ul>
                    <?php $__CATE__ = D('Category')->getChildrenId(51);$__LIST__ = D('Document')->page(!empty($_GET["p"])?$_GET["p"]:1,6)->lists($__CATE__, '`level` DESC,`id` DESC', 1,true); if(is_array($__LIST__)): $i = 0; $__LIST__ = $__LIST__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$article): $mod = ($i % 2 );++$i;?><li><span><?php echo (date("Y-m-d",$article["create_time"])); ?></span><a href="<?php echo U('News/detail',array('id'=>$article['id']));?>#body"><?php echo ($article["title"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        $(document).ready(function(){
            $('.marquee').kxbdMarquee({
                direction:'left',
                eventA:'mouseenter',
                eventB:'mouseleave'
            });
        });
    </script>
    <div class="wrap">
        <div class="box-style1 cooperative">
            <h3>合作单位</h3>

                <div class="marquee">
                    <ul>
                        <?php if(is_array($cooperative)): $i = 0; $__LIST__ = $cooperative;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><li>
                                <a href="<?php echo ($val["links"]); ?>">
                                    <img src="<?php echo (get_cover($val["cover_id"],'path')); ?>" alt="<?php echo ($val["title"]); ?>">
                                    <em><?php echo ($val["title"]); ?></em>
                                </a>
                            </li><?php endforeach; endif; else: echo "" ;endif; ?>
                    </ul>
                </div>

        </div>
    </div>

	<!-- /主体 -->

	<!-- 底部 -->
	<div class="footer">
    <div class="info wrap">
        <div class="logo">
            <a href="#"><img src="<?php echo (get_cover($config_set_info["logo"],'path')); ?>" alt=""></a>
        </div>
        <div class="text">
            公司：<?php echo ($config_set_info["company"]); ?><br/>
            电话：<?php echo ($config_set_info["tel"]); ?><br/>
            地址：<?php echo ($config_set_info["address"]); ?>
        </div>
        <div class="qrcode">
            <img src="<?php echo (get_cover($config_set_info["qr_code"],'path')); ?>" alt="">
        </div>
    </div>
    <div class="friends">
        <div class="wrap">
            友情链接：<?php if(is_array($friend_data)): $i = 0; $__LIST__ = $friend_data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><a href="<?php echo ($val["links"]); ?>"><?php echo ($val["title"]); ?></a>&nbsp&nbsp<?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
    </div>
    <div class="extend wrap">

        © 2000-2016  四川政信联众互联网信息服务有限公司 版权所有 蜀ICP备16003766号    技术支持：<a href="http://www.cdsok.com.cn">索客（ISONIC）科技</a>
    </div>
</div>

    <script>
        
        $(function(){
            //首页banner图滚动
            var index_banner = new Swiper('.index-ban',{                                                                     //首页banner
                autoplay : 3000,
                speed: 1000,
                //effect : 'fade',
                pagination : 'none',
                paginationClickable :true,

            });


            /* 新闻滚动控制 begin */
            var mySwiper = new Swiper('#news-swiper-container', {
                autoplay: 5000,//可选选项，自动滑动
                direction:'vertical',
                slidesPerView:1,
            });
            //方向按钮控制
            $(".control").on('click','.up',function(){
                mySwiper.slidePrev();
            }).on('click','.down',function(){
                mySwiper.slideNext();
            });
            /* 新闻滚动控制 end */

            /*滚动图片*/
            var imgs_swiper = new Swiper('#imgs-swiper-container', {
                autoplay: 5000,//可选选项，自动滑动
                pagination: '.imgs-pagination',
                paginationClickable: true,
                paginationBulletRender: function (swiper,index, className) {
                    return '<span class="' + className + '">' + (index + 1) + '</span>';
                }
            });



        })
    </script>
<script>
   var i=1;
    function banner(){
        $("#pictures li").hide();
        var len=$("#pictures li").length;
        if(i>len){
            i=1;
        }
        $("#pictures li").eq(i-1).show();
        i++;
    }

    setInterval("banner()",3000);

</script>

	<!-- /底部 -->
</body>
</html>